package com.wms.service.Impl;

import com.wms.entity.WmsUser;
import com.wms.entity.WmsUserRole;
import com.wms.mapper.UserRoleMapper;
import com.wms.service.UserRoleService;
import com.wms.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserRoleServiceImpl implements UserRoleService {
    @Autowired
    private UserRoleMapper userRoleMapper;
    @Override
    public List<WmsUserRole> findRoleIdByUser(WmsUser user) {
        List<WmsUserRole> userRoles = userRoleMapper.findRoleIdByUser(user);
        return userRoles;
    }
}
